class AddPostReferenceToPostHistories < ActiveRecord::Migration[5.0]
  def change
    add_reference :post_histories, :post, foreign_key: true, comment: 'reference to post'
  end
end
